package com.tn.user.controller;

import com.tn.user.feign.ServerBasicFeign;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tn
 * @version 1
 * @ClassName OpenFeignTestController
 * @description rpc 测试
 * @date 2020/8/6 19:29
 */
@RestController
@RequestMapping("openFeign")
@Api("user - rpc 测试 ")
public class OpenFeignTestController {

    @Autowired
    private ServerBasicFeign serverBasicFeign;

    @GetMapping(value = "test01")
    @ApiOperation(value = "user - rpc 测试 - test01")
    public String test01() {
        return serverBasicFeign.test01()+"user";
    }
}
